﻿@model GameSchoolWeb.Models.ExamIndexModelView
@{
    ViewBag.Title = "Exam Details";
}
<!DOCTYPE html>
<html>
<head>
    <title>ExamDetails</title>
</head>
<body>
    <fieldset>
        <div class="display-label">
            <strong>Heiti prófs</strong></div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Exam.strTitle)
        </div>
        <div class="display-label">
            <strong>Dagsetning</strong></div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Exam.dDateAdded)
        </div>
        <div class="display-label">
            <strong>Möguleg stig</strong></div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Exam.nPoints)
        </div>
        <div class="display-label">
            <strong>Heildarstig</strong></div>
        <div class="display-field">
            @Html.DisplayFor(model => model.TurnInExam.nScore)
        </div>
        @foreach (var item in Model.Question)
        {
            <div class="display-label">
                <strong>Spurning</strong></div>
            <div class="display-field">
                @Html.DisplayFor(model => item.strTitle)
            </div>

            <div class="display-label">
                <strong>Valmöguleiki 1</strong></div>
            <div class="display-field">
                @Html.DisplayFor(model => item.striOptionOne)
            </div>

            <div class="display-label">
                <strong>Valmöguleiki 2</strong></div>
            <div class="display-field">
                @Html.DisplayFor(model => item.strOptionTwo)
            </div>

            <div class="display-label">
                <strong>Valmöguleiki 3</strong></div>
            <div class="display-field">
                @Html.DisplayFor(model => item.strOptionThree)
            </div>

            <div class="display-label">
                <strong>Valmöguleiki 4</strong></div>
            <div class="display-field">
                @Html.DisplayFor(model => item.strOptionFour)
            </div>

            <div class="display-label">
                <strong>Valmöguleiki 5</strong></div>
            <div class="display-field">
                @Html.DisplayFor(model => item.strOptionFive)
            </div>

            <div class="display-label">
                <strong>Rétt svar</strong></div>
            <div class="display-field">
                @Html.DisplayFor(model => item.nCorrectOption)
            </div>
        }
    </fieldset>
    <p>
        @Html.ActionLink("Back to List", "GetExam")
    </p>
</body>
</html>
